package com.link2room.rodimus.dto.param.inside;

import com.link2room.common.annotation.L2RDatetimeString;
import com.link2room.common.dto.param.base.BaseL2rParamDto;
import com.link2room.common.dto.threadlocal.BaseThreadLocal;

import java.util.Date;

/**
 * Created by LN on 2017/2/17.
 */
public class SalesmanInComeDetailInsideParamDto extends BaseL2rParamDto {
    private String awardType;
    private String l2RNo;
    private String resSta;
    /**
     * 到店日期
     */
    private Date arr;
    /**
     * 离店日期
     */
    private Date dep;
    /**
     * 到店日期
     */
    @L2RDatetimeString(source ="arr" )
    private String arrtime;
    /**
     * 离店日期
     */
    @L2RDatetimeString(source ="dep" )
    private String deptime;

    private String spBillCreateIP;

    private String salesmanNo;

    private String resType;

    public SalesmanInComeDetailInsideParamDto() {
    }

    public SalesmanInComeDetailInsideParamDto(String salesmanNo, String payType) {
        setSalesmanNo(salesmanNo);
        setAwardType(payType);
        setSpBillCreateIP(BaseThreadLocal.getRemoteAddr());
    }

    public String getAwardType() {
        return awardType;
    }

    public void setAwardType(String awardType) {
        this.awardType = awardType;
    }

    public String getL2RNo() {
        return l2RNo;
    }

    public void setL2RNo(String l2RNo) {
        this.l2RNo = l2RNo;
    }

    public String getResSta() {
        return resSta;
    }

    public void setResSta(String resSta) {
        this.resSta = resSta;
    }

    public Date getArr() {
        return arr;
    }

    public void setArr(Date arr) {
        this.arr = arr;
    }

    public Date getDep() {
        return dep;
    }

    public void setDep(Date dep) {
        this.dep = dep;
    }

    public String getArrtime() {
        return arrtime;
    }

    public void setArrtime(String arrtime) {
        this.arrtime = arrtime;
    }

    public String getDeptime() {
        return deptime;
    }

    public void setDeptime(String deptime) {
        this.deptime = deptime;
    }

    public String getSpBillCreateIP() {
        return spBillCreateIP;
    }

    public void setSpBillCreateIP(String spBillCreateIP) {
        this.spBillCreateIP = spBillCreateIP;
    }

    public String getSalesmanNo() {
        return salesmanNo;
    }

    public void setSalesmanNo(String salesmanNo) {
        this.salesmanNo = salesmanNo;
    }

    public String getResType() {
        return resType;
    }

    public void setResType(String resType) {
        this.resType = resType;
    }


    @Override
    public String toString() {
        return "SalesmanInComeDetailInsideParamDto{" +
                "awardType='" + awardType + '\'' +
                ", l2RNo='" + l2RNo + '\'' +
                ", resSta='" + resSta + '\'' +
                ", arr=" + arr +
                ", dep=" + dep +
                ", arrtime='" + arrtime + '\'' +
                ", deptime='" + deptime + '\'' +
                ", spBillCreateIP='" + spBillCreateIP + '\'' +
                ", salesmanNo='" + salesmanNo + '\'' +
                ", resType='" + resType + '\'' +
                "} " + super.toString();
    }
}
